<!DOCTYPE html>
<html lang="zh-cmn-Hans">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="ie=edge" />
		<title>鹿程智慧油站商户平台</title>
		<meta name="description" content="鹿程科技是提供加油站互联网化零管系统、营销及支付和大数据分析运营服务的行业领先科技公司。鹿程科技充分了解加油站行业的需求和新兴互联网的发展,依靠业内最先进的科技和标准化的运营,持续帮助油站业务发展创造价值。"/>
		<meta name="keywords" content="智慧油站,鹿程,鹿程智慧油站,鹿程智慧油站微信支付,加油站微信支付,加油站营销管理"/>
		<link rel="icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link rel="shortcut icon" href="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/title.ico" type="image/x-icon">
		<link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
		<link rel="stylesheet" href="../layui/css/layui.css" />
		<link rel="stylesheet" href="../css/style.css" />
	</head>
<body>
	<!--login-header-->
	<header class="login-header">
		<div class="login-h-center clearfix">
			<div class="login-logo">
				<a href="#"><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/luchenlogo.png" alt="鹿程商户平台" /></a>
			</div>
		</div>
	</header>
	<!--/login-header-->
	<!--login-article-->
	<article class="login-article">
		<section class="login-a-center clearfix">
			<div class="login-text">
				<dl>创新不是为了改变世界 而是不再重复昨天</dl>
				<dl>Innovation changes the world, professionalism determines quality</dl>
			</div>
			<div >
			<form action="#" class="login layui-form">
				<span>登录</span>
				<div class="login-account">
					<label for="name"><i class="fa fa-user"></i></label>
					<input autofocus  name="account" type="text" lay-verify="required" lay-verType="tips" placeholder="商户账号" maxlength='20'/>
				</div>
				<div class="login-password">
					<label for="pwd"><i class="fa fa-lock"></i></label>
					<input id="pwd" name="password" type="password" lay-verify="required|pass" lay-verType="tips" placeholder="密码" maxlength='20'/>
				</div>
				<button class="login-btn" lay-submit lay-filter="login">登录</button>					
			</form>
		</section>
	</article>
	<!--/login-article-->
	<!--login-plan-->
	<article class="login-plans">
		<h3 class="login-plan-tit">一体化智慧油站解决方案</h3>
		<section class="login-plan">
			<dl><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/zhijiayou.png" alt="智慧收银" /><dt>智慧收银</dt></dl>
			<dl><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/yidongzhifu.png" alt="会员管理" /><dt>会员管理</dt></dl>
			<dl><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/zhixitong.png" alt="营销系统" /><dt>营销系统</dt></dl>
			<dl><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/zhishangcheng.png" alt="鹿程管控OS" /><dt>鹿程管控OS</dt></dl>
			<dl><img src="https://static.zhihuiyouzhan.com.cn/static/styles/admin/img/zhihuiyuanka.png" alt="鹿程商学院" /><dt>鹿程商学院</dt></dl>
		</section>
	</article>
	<!--/login-plan-->
	<!--footer-->
	<footer class="footer">
			<dl>Copyright © 2012-2018 杭州鹿程科技发展有限公司 All Rights Reserved.</dl>
	</footer>
	<!--/footer-->
	<!--js-->
	<aside>
		<script type="text/javascript" src="../layui/layui.js" ></script>
		<script type="text/javascript">
		layui.use(['form', 'jquery','layer'], function(){
			var layer=layui.layer;
			var $ = layui.jquery;
			var form = layui.form;
			
			form.verify({
			  	pass: [
				    /^[\S]{6,12}$/
				    ,'密码必须为6到12位，且不能出现空格'
				] 
		 	 }),
			
		
			function resMsg(){
				layer.open({
			 	    anim:1,
			 	    icon:2,
			 	    offset: '20%',
			 	    title:'很抱歉',
			 	    content:res.msg,
			 	    skin:'layui-layer-green',
			 	    shadeClose:true,
			 	});
			}
			
			
			form.on('submit(login)', function(data){  
					    $.ajax({
		                url: "/index.php/merchant/login/login",
						type:"post",
						data: data.field, 
						datatype:"json",
						success:function(res){
							if(res.code == 1)
							{
								 resMsg()
							}
							if(res.code == 2)
							{
								resMsg()
							}
							if(res.code == 3)
							{
		                        location.href = "/index.php/merchant/index/index";
							}
							if(res.code == 4)
							{
								resMsg()
							}
						}
						})
				    return false;  
				  }); 
		     })
		     
		     
		     
		     
			
			
		</script>
	</aside>
	<!--js-->
</body>
</html>